﻿using DataType = Xms.Abp.Data.DataType;

namespace Xms.Abp;

[AttributeUsage(AttributeTargets.Property)]
public class UIDetailsFieldAttribute: Attribute
{
    public int Order { get; set; }
    public string Label { get; set; }
    public string Placeholder { get; set; }
    public UIColumnFixedType? Fixed { get; set; }
    public string LocalizationKey { get; set; }
    public string Icon { get; set; }
    public string Format { get; set; }
    public DataType DataType { get; set; }
}

[AttributeUsage(AttributeTargets.Property)]
public class UIFieldValidateAttribute : Attribute
{
    public string ValidateRegex { get; set; }
    public bool IsRequired { get; set; }
    public int? MaxLength { get; set; }
    public int? MinLength { get; set; }
    public object RangeStart { get; set; }
    public object RangeEnd { get; set; }
}
